package com.lineng.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Activity {
	private Integer id;

	private String title;

	private String content;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date date;

	private Integer reader;

	private String people;

	private String img;

	private String url;

	private String value;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title == null ? null : title.trim();
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content == null ? null : content.trim();
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Integer getReader() {
		return reader;
	}

	public void setReader(Integer reader) {
		this.reader = reader;
	}

	public String getPeople() {
		return people;
	}

	public void setPeople(String people) {
		this.people = people == null ? null : people.trim();
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img == null ? null : img.trim();
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url == null ? null : url.trim();
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value == null ? null : value.trim();
	}

	// 显示日期
	public String getformatDate() {
		return com.lineng.util.DateUtils.formatDateToString(getDate(), "yyyy-MM-dd");
	}

}